/*
 * @ClassName router_init.dart
 * @Description 路由管理初始化
 * @Author SuPeiSen
 * @Date 2020/7/15 15:03
 */

import 'package:fluro/fluro.dart';
import 'package:flutter_su/common/application.dart';
import 'package:flutter_su/router/router_register.dart';

class RouterInit{
  void init(){
    //创建一个Router对象
    final router = Router();
    // 注册路由
    RouterRegister.configureRoutes(router);
    //将生成的router给全局化
    Application.router = router;
  }
}